package com.woniuxy.microcommonserver.bean.seckill_lk;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.woniuxy.microcommonserver.bean.gy.GoodsInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SeckillGoodsInfo implements Serializable {

  private Long id;
  @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
  private Date startTime;
  @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
  private Date endTime;
  private Double seckillPrice;
  private Integer stock;
  /**
   * 秒杀商品状态
   * 0 未上架 1 已上架 2 已下架
   */
  private Integer status;
  /**
   * 1 已删除 0 未删除
   */
  private Integer isDelete;
  /**
   * 指定的商品
   */
  private GoodsInfo goodsInfo;

}
